Ket TM-ket-hash input-ket
hashes the given input ket into a relatively collision free, deterministic, hash
any coeffs will be preserved
if the input ket is empty, it returns the empty ket
mostly deprecates TM-sequence-hash
this operator is a member of the Template Machine set of operators